<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>


<LINK rel="stylesheet" type="text/css" href="<html:rewrite page='/alf.css'/>">	
<form method="post" <html:rewrite page='/org/types.do'/>">
<trans:initPage module="orgtypes" />
<table align="center" cellpadding="5" cellspacing="1" border="0" background=<html:rewrite page='/images/pixelbgtable.gif'/> class="text_search">
<tr><td colspan="2" class="textalb" align="center"><trans:showPageMessage label="editor.addnew" /></td></tr>
<tr><td bgcolor="#FFFFFF">

<input type="hidden" property="id"
value='<bean:write name="item" property="id"/>'
/>

<trans:showPageMessage label="typename" />: 

<input type="text" name="name" value='<bean:write name="item" property="name"/>' 
onkeydown="textCounter(this.form.name,this.form.cname,200);" 
onkeyup="textCounter(this.form.name,this.form.cname,200);"/>
 
<input readonly type="text" name="cname" size="3" maxlength="4" value=""><trans:showPageMessage label="charactersleft" /></br>
</td><td bgcolor="#FFFFFF">
<html:submit styleClass="butonsave" property="save">
<logic:equal name="item" property="id" value="0"><trans:showPageMessage label="add" hide_link="true"/></logic:equal>
<logic:notEqual name="item" property="id" value="0"><trans:showPageMessage label="update" hide_link="true" /></logic:notEqual>
</html:submit>
</td></tr>
<tr><td bgcolor="#FFFFFF">
<logic:notEqual name="item" property="id" value="0">
<input class="butonsave" type="button" value="<trans:showPageMessage label="addnew" hide_link="true" />" onclick="javascript:window.location.href='<html:rewrite page="/org/types.do?new=y"/>';"/>
</logic:notEqual>  
</td><td bgcolor="#FFFFFF">

<input class=butonsave type="button" value="<trans:showPageMessage label="typeslist" hide_link="true" />"
	onclick="javascript:window.location.href='<html:rewrite page="/org/types.do?list=y"/>';"/>
</td></tr><trans:showPageMessage label="translator.showhiddentags"/>
</form>
<script type="text/javascript" src="<html:rewrite page='/javascript/textCounter.js'/>"></script>